package com.cn.springcloudwechat.service.personalcenter.service;

import com.cn.springcloudwechat.model.YmUserPoint;

/**
 * @Author Lg
 * @Date 2018/8/6 14:18
 * @Content
 */
public interface YmUserPointService {

    /**
     * 新增用户豆豆
     * @param userId
     * @param changeDes
     * @param changeType
     * @return
     */
    Integer insertUserPoint(Long userId,String changeDes,Integer changeType,String change);

    /**
     * 查询用户最新一条豆豆记录
     * @param userId
     * @return
     */
    YmUserPoint getNewestPoint(Long userId);

}
